<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
    />
    <title>券码客户端</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.tsx"></script>
    <script>
      (function (doc, win) {
        var docEl = doc.documentElement,
          resizeEvt =
            'orientationchange' in window ? 'orientationchange' : 'resize',
          recalc = function () {
            // if (window.location.pathname === '/coupon/buy') {
            //   docEl.style.overflow = 'hidden';
            // }
            var clientWidth = docEl.clientWidth;
            if (!clientWidth) return;
            // if (clientWidth >= 750) {
            //   docEl.style.fontSize = '100px';
            // } else {
            docEl.style.fontSize = 100 * (clientWidth / 360) + 'px';
            // docEl.style.height = '100vh';
            // }
          };
        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);

        doc.addEventListener('DOMContentLoaded', recalc, false);
        window.addEventListener('resize', () => {
          // alert(window.innerHeight);
        });
      })(document, window);
    </script>
  </body>
</html>
